<%-- 
    Document   : rVerComponentes
    Created on : 5/09/2013, 02:35:55 PM
    Author     : Andres
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="/struts-tags" prefix="s"%>
<table border="0" width="60%" cellpadding="0" cellspacing="0" id="product-table" name="tablaDisp">
        <tr>
                <th class="table-header-repeat line-left minwidth-1"><a>ID</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Marca</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Modelo</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Tipo</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Estado</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Departamento</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Localización</a></th>
        </tr> 
        <tr>
            <td><input type="text"  class="inp-form" value="<s:property value='dd.idDisp'/>" id="idDisp" readonly=""/></td>
            <td><s:property value="dd.marca"/></td>
            <td><s:property value="dd.modelo"/></td>
            <td><s:property value="dd.tipo"/></td>
            <td><s:property value="dd.estado"/></td>
            <td><s:property value="dd.departamento"/></td>
            <td><s:property value="dd.localizacion"/></td>
        </tr> 
 </table>
<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
        <tr>
            <th valign="top">
                Nombre: 
            </th> 
            <td>
                <select id="nombreCompC" name="nombreCompC">
                        <option value="">[Tipo]</option>
                        <s:iterator value="listaTiposComponentes" status="estatus">
                            <option value="<s:property value='IdTipo'/>"><s:property value="Tipo"/></option>   
                        </s:iterator>
                </select> 
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="enombreCompC">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <th valign="top">
                Caracteristicas: 
            </th> 
            <td>
                <input type="text" class="inp-form" name="caracteristicasCompC" id="caracteristicasCompC"/>
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="ecaracteristicasCompC">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <td colspan=2"">
                <input type="submit" class="btn" value="Agregar Componente" name="btnAgregarComponenteC" id="btnAgregarComponenteC"/>
            </td>
        </tr>
        <tr>
            <th valign="top">
                Existente: 
            </th> 
            <td>
                <select id="existenteCompC" name="existenteCompC">
                        <option value="">[Tipo]</option>
                        <s:iterator value="listaExistenteComponentes" status="estatus">
                            <option value="<s:property value='Id'/>"><s:property value="IdDispOrigen.IdDisp"/>-<s:property value="IdTipo.Tipo"/></option>   
                        </s:iterator>
                </select> 
            </td>    
            <td>
            <div class="error-left"></div>
            <div class="error-inner" id="eexistenteCompC">Este campo es requerido.</div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" class="btn" value="Regresar" name="btnRegresarC" id="btnRegresarC">
                <input type="button" class="btn" value="Agregar Existente" name="btnAgregarExistenteC" id="btnAgregarExistenteC">
            </td>    
        </tr> 
</table>
<table border="0" width="60%" cellpadding="0" cellspacing="0" id="product-table" name="tablaComp">
    <tr>
            <th class="table-header-repeat line-left minwidth-1"><a>Tipo</a></th>
            <th class="table-header-repeat line-left minwidth-1"><a>Caracteristicas</a></th>
    </tr>
    <s:iterator value="listaComponentes" status="estatus">    
        <tr>
            <td><s:property value="IdTipo.Tipo"/></td>
            <td><s:property value="Caracteristicas"/></td>
        </tr>
    </s:iterator>   
 </table>